package model

import "duoke/tables"

type ReqGoodsUser struct {
	Id       int    `xorm:"not null pk autoincr INT(10)" json:"id" form:"id"`
	Acid     int    `xorm:"" json:"acid" form:"acid"`
	Name     string `xorm:"" json:"name" form:"name"`
	Phone    string `xorm:"" json:"phone" form:"phone"`
	Nickname string `xorm:"" json:"nickname" form:"nickname"`
	Avatar   string `xorm:"" json:"avatar" form:"avatar"`
}

func (ReqGoodsUser) TableName() string {
	return "goods_user"
}

type GoodsUserList struct {
	tables.GoodsUser `xorm:"extends"`
	OrderNum         int            `json:"order_num" xorm:"-"`
	OrderList        []tables.Order `json:"order_list" xorm:"-"`
}

func (GoodsUserList) TableName() string {
	return "goods_user"
}
